You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Medium Risk
HttpAPIClientHelper drops the SPI-style SSL provider in favor of a fixed default implementation, which is a small TLS wiring change in production code; most of the PR is examples and tests.
Overview
Adds client-v2 and JDBC runnable examples for HTTPS when the server chain is signed by a private CA, using setRootCertificate / sslrootcert without a JVM trust store. Local runs spin up Docker ClickHouse with ephemeral certs via new SSLExamples and SecureServerSupport; standalone mode targets a user-supplied host and CA PEM path. READMEs document both modes and manual OpenSSL/Docker setup.
client-v2 gains an integration test (testCustomCaCertificate) that builds a CA-signed server cert, serves HTTPS with WireMock, and asserts a client with only the root CA can ping/query while the default-trust client fails. HttpAPIClientHelper wires TLS through an instance of ClickHouseDefaultSslContextProvider instead of the pluggable ClickHouseSslContextProvider lookup (behavior for trust store vs cert paths unchanged). Test/example modules add BouncyCastle and Testcontainers; .gitignore ignores generated cert/key artifacts.
Reviewed by Cursor Bugbot for commit 4ac5a16. Bugbot is set up for automated code reviews on this repo. Configure here.
Repository collaborators can run the JMH benchmark suite against this PR by commenting:
/benchmark
Optional regression threshold override (Δ% on Time or Alloc/op; defaults to 10%):
/benchmark threshold=15
Only one benchmark run per PR is active at a time — issuing a new /benchmark comment cancels the previous run. After the run finishes a separate comment will be posted comparing it against the latest scheduled run on main; the PR check fails if any benchmark regresses by more than the threshold.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
client-v2andjdbcprojects and use testcontainer with specially configured server. Also allows run against user configured endpointThis PR is part 1 in series of changes for SSL support and different configurations.
Checklist
Delete items not relevant to your PR:
Note
Medium Risk
HttpAPIClientHelper drops the SPI-style SSL provider in favor of a fixed default implementation, which is a small TLS wiring change in production code; most of the PR is examples and tests.
Overview
Adds client-v2 and JDBC runnable examples for HTTPS when the server chain is signed by a private CA, using
setRootCertificate/sslrootcertwithout a JVM trust store. Local runs spin up Docker ClickHouse with ephemeral certs via newSSLExamplesandSecureServerSupport; standalone mode targets a user-supplied host and CA PEM path. READMEs document both modes and manual OpenSSL/Docker setup.client-v2 gains an integration test (
testCustomCaCertificate) that builds a CA-signed server cert, serves HTTPS with WireMock, and asserts a client with only the root CA can ping/query while the default-trust client fails. HttpAPIClientHelper wires TLS through an instance ofClickHouseDefaultSslContextProviderinstead of the pluggableClickHouseSslContextProviderlookup (behavior for trust store vs cert paths unchanged). Test/example modules add BouncyCastle and Testcontainers;.gitignoreignores generated cert/key artifacts.Reviewed by Cursor Bugbot for commit 4ac5a16. Bugbot is set up for automated code reviews on this repo. Configure here.